//
//  File.swift
//  XPWebImage
//
//  Created by jamalping on 16/5/13.
//  Copyright © 2016年 jamalping. All rights reserved.
//

import Foundation


class XPMemoryCache {
    var name: String? //
    
    // MARK:<# description #>
    var totalCount: UInt? {
        get {
            return 10
        }
    }
    
    var totalCost: UInt? {
        get {
            return 10
        }
    }
    
    var countLimit: UInt?
    var costLimit: UInt?
    var ageLimit: NSTimeInterval?
    var autoTrimInterval: NSTimeInterval?
    var shouldRemoveAllObjectsOnMemoryWarning: Bool?
    var shouldRemoveAllObjectsWhenEnteringBackground: Bool?
    
    var didRecevieMemoryWarnCall: ((xpMemoryCache:XPMemoryCache) -> Void)?
    var didEnterBackgroundBlock: ((xpMemoryCache:XPMemoryCache) -> Void)?
    
    var releaseOnMainThread: Bool?
    var releaseAsynchronously: Bool?
//    
//    func containsObjectForKey(key: NSString) -> Bool {
//        
//    }
}